﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LeagueTournamentPlayInfo.ascx.cs" Inherits="VirtualTournaments.Frontend.MenuControls.GenericControls.LeagueTournamentPlayInfo" %>

<%@ Register TagPrefix="GenericControls" TagName="TeamInfo" Src="~/MenuControls/GenericControls/TeamInfo.ascx" %>
<%@ Register TagPrefix="GenericControls" TagName="JourneyManager" Src="~/MenuControls/GenericControls/JourneyManager.ascx" %>
<%@ Register TagPrefix="GenericControls" TagName="TournamentInfo" Src="~/MenuControls/GenericControls/TournamentInfo.ascx" %>

<link href="../../App_Themes/TournamentManager/TournamentManager.css" rel="stylesheet" type="text/css" />

<asp:Panel ID="ContentPanel" runat="server">
    
    <asp:MultiView ID="LeagueTournamentViewControler" runat="server" ActiveViewIndex="0">
    
        <asp:View ID="TournamentPlayInfoView" runat="server">
            
            <asp:Table ID="ContentTable" runat="server" Width="100%" Height="100%">
                <asp:TableHeaderRow>
                    <asp:TableHeaderCell HorizontalAlign="Center">
                        <asp:Label ID="TournamentNameLabel" runat="server"></asp:Label>
                    </asp:TableHeaderCell>
                </asp:TableHeaderRow>
                <asp:TableRow>
                    <asp:TableCell Width="70%" VerticalAlign="Top">
                        <asp:Table ID="TournamentTable" runat="server" Width="100%">
                            <asp:TableRow>
                                <asp:TableHeaderCell>Team</asp:TableHeaderCell>
                                <asp:TableHeaderCell>Matches</asp:TableHeaderCell>
                                <asp:TableHeaderCell>Win</asp:TableHeaderCell>
                                <asp:TableHeaderCell>Draw</asp:TableHeaderCell>
                                <asp:TableHeaderCell>Loss</asp:TableHeaderCell>
                                <asp:TableHeaderCell>GS</asp:TableHeaderCell>
                                <asp:TableHeaderCell>GR</asp:TableHeaderCell>
                                <asp:TableHeaderCell>Points</asp:TableHeaderCell>
                            </asp:TableRow>
                        </asp:Table>
                    </asp:TableCell>
                    
                    <asp:TableCell Width="10%"></asp:TableCell>
                    
                    <asp:TableCell Width="20%" VerticalAlign="Top">
                        <GenericControls:JourneyManager ID="JourneyManager" runat="server" ></GenericControls:JourneyManager>
                    </asp:TableCell>
               
                </asp:TableRow>
            </asp:Table>
            <br />
            <asp:Table ID="PlayOptionButtonsTable" runat="server" Width="100%">
                <asp:TableRow>
                    <asp:TableCell HorizontalAlign="Left">
                        <asp:Button ID="TournamentInfoButton" runat="server" Text="Tournament Info" OnClick="TournamentInfoButton_OnClick" 
                        onmouseover ="this.style.cursor='hand'" BackColor="Transparent" BorderStyle="None" Font-Size="Medium" Font-Bold="true"/>
                    </asp:TableCell>
                    
                    <asp:TableCell HorizontalAlign="Right">
                        <asp:Button ID="GetNextJourneyButton" runat="server" Text="Next Journey" OnClick="GetNextJourneyButton_OnClick" 
                        onmouseover ="this.style.cursor='hand'" BackColor="Transparent" BorderStyle="None" Font-Size="Medium" Font-Bold="true"
                        Enabled = "false"/>
                    </asp:TableCell>
                    
                    <asp:TableCell  HorizontalAlign="Center">
                        <asp:Button ID="PlayMatchesButton" runat="server" Text="Play Matches" OnClick="PlayMatchesButton_OnClick" 
                        onmouseover ="this.style.cursor='hand'" BackColor="Transparent" BorderStyle="None" Font-Size="Medium" Font-Bold="true"/>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>
            <br />
            <div id="Div1" class="ButtonBackDivCssClass">
                <asp:Button ID="TournamentInfoGoBackButton" runat="server" OnClick="TournamentInfoGoBackButton_OnClick" Text="< Go Back >" 
                CssClass="CreateTournamentButtonCssClass" BackColor="Transparent" BorderStyle="None"/>
            </div>

        </asp:View>
        
        <asp:View ID="TeamInfoView" runat="server">
            <GenericControls:TeamInfo ID="TeamInfoControler" runat="server" />
            
            <div id="ButtonBackDiv" class="ButtonBackDivCssClass">
                <asp:Button ID="TeamInfoGoBackButton" runat="server" OnClick="TeamInfoGoBackButton_OnClick" Text="< Go Back >" 
                CssClass="CreateTournamentButtonCssClass" BackColor="Transparent" BorderStyle="None"/>
            </div>
        </asp:View>
        
        <asp:View ID="TournamentInfoView" runat="server">
            <GenericControls:TournamentInfo ID="TournamentInfoControler" runat="server" />
            
            <div id="TournamentButtonBackDiv" class="ButtonBackDivCssClass">
                <asp:Button ID="TournamentInformationGoBackButton" runat="server" OnClick="TournamentInformationGoBackButton_OnClick" Text="< Go Back >" 
                CssClass="CreateTournamentButtonCssClass" BackColor="Transparent" BorderStyle="None"/>
            </div>
        </asp:View>
        
    </asp:MultiView>      
</asp:Panel>